import { LAYOUT } from '@/router/constant'

const staff = [
  {
    path: '/staff',
    name: 'staff',
    component: LAYOUT,
    meta: {
      title: '人员管理',
      icon: 'icon-user-add',
      sortIndex: 3,
    },
    children: [
      {
        path: 'user',
        name: 'staff-user',
        component: () => import('@/views/staff/user/index.vue'),
        meta: {
          title: '用户管理',
          requireAuth: true
        }
      },
      {
        path: 'role',
        name: 'staff-role',
        component: () => import('@/views/staff/role/index.vue'),
        meta: {
          title: '角色管理',
          requireAuth: true
        },
      }
    ]
  }
]

export default staff
